<template>
	<view class="config">
		<view class="config-item" @click="go('address')">
			<view>收货地址管理</view>
			<view> > </view>
		</view>
		<view class="config-item" @click="go('name')">
			<view>修改账号名</view>
			<view> > </view>
		</view>
		<view class="config-item" @click="go('password')">
			<view>修改密码</view>
			<view> > </view>
		</view>
		<view class="exit">注销登录</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			go(data){
				switch(data){
					case 'address':
						uni.navigateTo({
							url:"/pages/config/address"
						});
						break;
					case 'name':
						uni.navigateTo({
							url:"/pages/config/account?opreation=name"
						})
						break;
					case 'password':
						uni.navigateTo({
							url:"/pages/config/account?opreation=password"
						})
						break;
				}
			}
		}
	}
</script>

<style>
.config-item{
	display: flex;
	justify-content: space-between;
	padding:20rpx 0 20rpx 20rpx;
	border-bottom: 2rpx solid #CCCCCC;
}
.exit{
	margin-top: 100rpx;
	border: 1px solid #66ccff;
	background-color: #66ccff;
	border-radius: 30rpx;
	text-align: center;
	color: white;
}
</style>
